#ifndef __SNMPAPI_H__
#define __SNMPAPI_H__

#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>

#define SNMP_IFSTATUS_UP 1

struct _snmp_variable
{
  char *oid;
  int type;
  union
  {
    int integer;
    char *string;
  } value;
  struct _snmp_variable *next;
};

typedef struct _snmp_variable SNMP_VARIABLE, *PSNMP_VARIABLE;

extern void SNMP_FreeVars(PSNMP_VARIABLE pvar);
extern int SNMP_Get(char strHostname[], char strCommunity[],
                    char strOID[], PSNMP_VARIABLE *ppvar);
extern int SNMP_Walk(char strHostname[], char strCommunity[],
                     char strRootOID[], PSNMP_VARIABLE *ppvar);

#endif /* __SNMPAPI_H__ */

